package com.atguigu.tingshu.album.service;

import com.alibaba.fastjson.JSONObject;
import com.atguigu.tingshu.model.album.BaseAttribute;
import com.atguigu.tingshu.model.album.BaseCategory1;
import com.atguigu.tingshu.model.album.BaseCategory3;
import com.atguigu.tingshu.model.album.BaseCategoryView;
import com.atguigu.tingshu.vo.album.AlbumInfoVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface BaseCategoryService extends IService<BaseCategory1> {


    /**
     * 三级分类查询
     * @return
     */
    List<JSONObject> getBaseCategoryList();


    /**
     * 根据一级分类Id获取分类属性（标签）列表
     * @param category1Id
     * @return
     */
    List<BaseAttribute> selectAttribute(Long category1Id);

    /**
     * 新增专辑
     * @param albumInfoVo
     */
    void saveAlbumInfo(AlbumInfoVo albumInfoVo,Long userId);

    BaseCategoryView getCategoryView(Long category3Id);

    List<BaseCategory3>  findTopBaseCategory3(Long category1Id);

    JSONObject getBaseCategoryListByCategory1Id(Long category1Id);
}
